<script>
	import {
		getInviteLinkCode
	} from '@/util/commonFunction'
	export default {
		onLaunch: function() {
			// #ifdef H5
			getInviteLinkCode();
			// #endif

			if (!uni.getStorageSync('token')) {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}
		},
		onShow: function() {},
		onHide: function() {},
	}
</script>

<style lang="scss">
	page {
		background: #f5f6fa;
	}

	:deep(.u-form-item__body__right__message) {
		margin-left: 20rpx !important;
	}
	
	/*每个页面公共css */
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-plus/index.scss";
	@import "@/static/css/theme.scss";
</style>